package JavaToC;

import com.sun.jna.Native;

public class keyczar_xperiment {

	public static ISecrecySystem	_nativeAES;

	public static void main(String[] args) {


		/**
		 * get a reference interface to our C impl. of AES
		 */
		_nativeAES = (ISecrecySystem) Native.loadLibrary("SecrecySystem", ISecrecySystem.class);

		if (_nativeAES == null){
			System.out.printf ("cannot locate the ref dynamic library for aes");
		}
		else{
			System.out.printf ("ref obtained for aes c impl.");
			
			_nativeAES.Init();
			_nativeAES.Close();
		}
		
	}

}
